package com.example.train_operate.service;

import com.example.train_operate.dto.LoginDTO;
import com.example.train_operate.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.train_operate.util.Result;

/**
* @author 21609
* @description 针对表【tb_user】的数据库操作Service
* @createDate 2025-08-07 18:48:13
*/
public interface UserService extends IService<User> {
    //登录
    Result login(LoginDTO loginDTO);

    //注册
    Result register(User user);

    //获取用户列表
    Result getUserList();

    Result logout();

    Result getAllOnlineUsers(String excludeUserId);

    Result getAndroidDevices(String excludeUserId);

    Result getStats();

    Result deleteUser(Integer userId);

    Result updateUser(User user);

    Result updatePassword(User user);
}
